<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>圣杯布局</title>
  <style>
    .outer, .left, .middle, .right {
      height: 100px;
      margin-bottom: 5px;
    }
    .left {
      background-color: tomato;
    }
    .middle {
      background-color: lightgreen;
    }
    .right {
      background-color: gold;
    }
    .outer1 {
      padding: 0 200px 0 100px;
    }
    .outer1 .middle {
      width: 100%;
      float: left;
    }
    .outer1 .left {
      width: 100px;
      float: left;
      margin-left: -100%;
      position: relative;
      left: -100px;
    }
    .outer1 .right {
      width: 200px;
      float: left;
      margin-left: -200px;
      position: relative;
      left: 200px;
    }
  </style>
</head>
<body>
  <div class="outer outer1">
    <div class="middle">middle</div>
    <div class="left">left</div>
    <div class="right">right</div>
  </div>
</body>
</html>